﻿using System;
using Plain;
using Plain.Validation;

namespace Plain.Demo.Blog {
    public class Comment : BusinessEntity<int> {
        public DateTime Created { get; set; }
        [NotNullOrEmpty]
        public string CreatedBy { get; set; }
        [NotNullOrEmpty]
        [Expression(@"[\w]+@[\w]+.dk")]
        public string CreatedByEmail { get; set; }
        [NotNullOrEmpty]
        public string Text { get; set; }
    }
}
